﻿namespace zijian666.Data;

/// <summary>
/// 命令拦截上下文
/// </summary>
public class DbExecuteReaderInterceptorContext(IDbCommand command, IDataReader? reader, long timestamp, CancellationToken cancellationToken)
    : DbInterceptorContext(command.Connection!, timestamp, cancellationToken)
{
    public IDbCommand Command { get; } = command;
    public IDataReader? DataReader { get; } = reader;
    public object? Result { get; internal set; }
}
